﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UniversaleMain.Master" AutoEventWireup="true" CodeBehind="ProfitandCostReport.aspx.cs" Inherits="FYPDemo.ProfitandCostReport" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1 class="h1_title">profit & cost report</h1>
    <table style="width:100%;">
        <tr>
            <td colspan="3">
                
                <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                </asp:ToolkitScriptManager>
                
            </td>
        </tr>
        <tr>
            <td style="width:100px">
                <asp:Label ID="label1" runat="server">Date:</asp:Label>
                &nbsp;</td>
            <td>
                <asp:Label ID="Label2" runat="server" Text="From:"></asp:Label> &nbsp;
                <asp:TextBox ID="txtDateFrom" runat ="server" Text=""></asp:TextBox> 
                <asp:CalendarExtender ID="txtDateFrom_CalendarExtender" runat="server" 
                    TargetControlID="txtDateFrom">
                </asp:CalendarExtender>
                &nbsp; &nbsp;
                <asp:Label ID="Label3" runat="server" Text="To:"></asp:Label>&nbsp;
                <asp:TextBox ID="txtDateTo" runat ="server" Text=""></asp:TextBox>
                <asp:CalendarExtender ID="txtDateTo_CalendarExtender" runat="server" 
                    TargetControlID="txtDateTo">
                </asp:CalendarExtender>
                &nbsp;&nbsp;
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            &nbsp;
            <td>

            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:Button ID="btnSearch" runat="server" Text="Search" 
                    onclick="btnSearch_Click" CssClass="buttonbg" />
            </td>
            <td>

                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>

                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:GridView ID="ProfitCostReport_GView" runat="server" 
                    AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
                    GridLines="None">
                    <AlternatingRowStyle BackColor="White" />
                <Columns>
                <asp:TemplateField HeaderText = "No.">
                <ItemTemplate>
                    <%# Container.DataItemIndex + 1 %>
                </ItemTemplate>
                </asp:TemplateField>

                <asp:TemplateField HeaderText = "Date">
                <ItemTemplate>
                    <asp:Label ID="lblA1" runat="server"><%#Eval("DatePaid") %></asp:Label>
                </ItemTemplate>
                </asp:TemplateField>

                <asp:TemplateField HeaderText = "Total Sales">
                <ItemTemplate>
                    <asp:Label ID="lblA2" runat="server"><%#Eval("Price") %></asp:Label>
                </ItemTemplate>
                </asp:TemplateField>

                <asp:TemplateField HeaderText = "Total Cost">
                <ItemTemplate>
                    <asp:Label ID="lblA3" runat="server"><%#Eval("Cost") %></asp:Label>
                </ItemTemplate>
                </asp:TemplateField>

                <asp:TemplateField HeaderText = "Total Profit">
                <ItemTemplate>
                    <asp:Label ID="lblA4" runat="server"><%#Eval("Profit") %></asp:Label>
                </ItemTemplate>
                </asp:TemplateField>

                </Columns>
                    <EditRowStyle BackColor="#7C6F57" />
                    <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#E3EAEB" />
                    <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F8FAFA" />
                    <SortedAscendingHeaderStyle BackColor="#246B61" />
                    <SortedDescendingCellStyle BackColor="#D4DFE1" />
                    <SortedDescendingHeaderStyle BackColor="#15524A" />
                </asp:GridView>
            </td>
            <td>

                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
